{% extends 'news/base.html' %}

{# 标题 #}
{% block titleBlock %}
    首页-新经资讯
{% endblock %}

{# 分类部分 #}
{% block headerBlock %}
                {% for category in data.category_list %}
                     <li class="{{ category.id }}" data-cid="{{ category.id }}"><a href="javascript:;">{{ category.name }}</a></li>

                {% endfor %}
{% endblock %}

{# script #}
{% block scriptBlock %}
    <script type="text/javascript" src="../../static/news/js/index.js"></script>
{% endblock %}

{# 正文 #}
{% block cotentBlock %}
        <ul class="list_con fl">

            {% for news in newslist %}
                <li>
                    <a href="#" class="news_pic fl"><img src={{ news.index_image_url }}></a>
                    <a href="#" class="news_title fl">{{ news.title }}</a>
                    <a href="#" class="news_detail fl">{{ news.digest }}</a>
                    <div class="author_info fl">
                    <div class="author fl">
                     <img src="../../static/news/images/person.png" alt="author">
                            <a href="#">{{ news.author }}</a>
                        </div>
                        <div class="time fl">{{ news.create_time }}</div>
                    </div>
                </li>

            {% endfor %}
        </ul>
{% endblock %}

